package com.xm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品优惠卷
 * @author 康文程
 * @date 2024-1-7 11:45
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Coupons {
    /**
     * 编号
     */
    private Integer couponId;
    /**
     * 优惠卷标题
     */
    private String couponTitle;
    /**
     * 优惠卷使用范围
     */
    private String couponRange;
    /**
     * 优惠卷开始时间
     */
    private Date couponValidTime;
    /**
     * 优惠卷结束时间
     */
    private Date couponEndTime;
    /**
     * 优惠卷状态
     */
    private Integer couponStatus;
    /**
     * 用户信息Id
     */
    private Integer informationId;
    /**
     * 折扣
     */
    private BigDecimal discount;
    /**
     * 范围
     */
    private Category type;

    public Coupons(Integer couponId, String couponTitle, Date couponValidTime, Date couponEndTime, Integer couponStatus, Integer informationId, BigDecimal discount, Category type) {
        this.couponId = couponId;
        this.couponTitle = couponTitle;
        this.couponValidTime = couponValidTime;
        this.couponEndTime = couponEndTime;
        this.couponStatus = couponStatus;
        this.informationId = informationId;
        this.discount = discount;
        this.type = type;
    }
}
